-
Notifications
You must be signed in to change notification settings - Fork 208
Extension hooks and skeleton of phongo #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
||
PHP_FUNCTION(bson_encode); | ||
PHP_FUNCTION(bson_decode); | ||
PHP_FUNCTION(bson_to_json); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should there be a json_to_bson()
function, too? Or rather, bson_encode_json
and bson_decode_json
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really. Don't think libmongoc supports that - and you can do it in userland anyway: bson_encode(json_decode($json));.
I'm unsure what the usecase for this is would be.
bson_to_json() is handy to debug stuffz...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be for supported extended JSON. I believe Christian actually has methods for this, too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah. from Extended JSON... I guess that makes sense.
Could also help mocking up bson I suppose
|
||
static zend_function_entry php_phongo_cursor_me[] = { | ||
/** | ||
* Returns the CursorId |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation.
Extension hooks and skeleton of phongo
No description provided.